
public class PrivateCar extends Vehicle{
	
	private int numberOfCylinders;
	private String color;
	
	public PrivateCar(String rego, String make, String model, String ownername,
			  String address, Boolean status, int numcyl, String colour)
	{ 
		super(rego, make, model, ownername, address, status);
		this.numberOfCylinders = numcyl;
		this.color= colour;
	}
	public PrivateCar(String rego, String make, String model, String ownername,
			  String address, String status, int numcyl, String colour)
	{ 
		super(rego, make, model, ownername, address, status);
		this.numberOfCylinders = numcyl;
		this.color= colour;
	}
	public String toString()
	{
		return"Car [regoNumber=" + regNum + ", make=" + makeDescription
				 + ", description=" + modelDescription + ", ownerName=" + regOwnerName
				 + ", ownerAddress=" + regOwnerAdderss + ", registered="
				 + regStatus + "]";

	}
	public double calculateRego() {
		double fee = 87 * numberOfCylinders + 110 + (double) 10 * 77 / 100;
		if(color == "RED")
			fee += 20;
		if(modelDescription == "Mitsubishi")
			fee = fee * 2;
		return fee;
	}
	public int  GetnumCyl() {
		return numberOfCylinders;
	}
	public String  Getcolor() {
		return color;
	}
}

